#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "dialog.h"

#include <QHBoxLayout>
#include <QMainWindow>
#include <QPushButton>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void onBtnOkClicked();
    void onDialogReject();
    void onDialogFinished(int result);
    void onDialogOkClicked(QString str);
private:
    Ui::MainWindow *ui;
    QHBoxLayout *mHBLGlobal;
    QPushButton *mBtnOk;
    Dialog *mDialog;
};

#endif // MAINWINDOW_H
